﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using University.Workshop.Model;
using University.Workshop.Presenters;

namespace University.Workshop.WinApp.AmbulanceFolder
{
    public partial class NewAmbulanceView : Form, IAmbulance
    {
        AmbulancePresenter presenter;

        public NewAmbulanceView()
        {
            InitializeComponent();
            presenter = new AmbulancePresenter(this);
        }

        private void NewAmbulanceView_Load(object sender, EventArgs e)
        {

        }


        public string AmbulanceId
        {
            get
            {
                return textBox1.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string Model
        {
            get
            {
                return textBox2.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string Year
        {
            get
            {
                return textBox3.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string PurchaseYear
        {
            get
            {
                return textBox4.Text;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show(presenter.AmbulanceRegister());
        }


        public string OldAmbulanceId
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }



        public string State
        {
            get
            {
                return "Libre";
            }
            set
            {
                throw new NotImplementedException();
            }
        }


        public string Deleted
        {
            get
            {
                return "No";
            }
            set
            {
                throw new NotImplementedException();
            }
        }
    }
}
